<html>
<head>
	<title></title>
	<script type="text/javascript">

	function a(){
		var myvar = "my Object";
		this.getInfo = function(){
			return "This is " + myvar;
		}
	}

	</script>
</head>
<body>
<script type="text/javascript">
	a();
	console.debug(getInfo());
</script>
</body>
</html>